package com.itheima.homework.homework03;

public class SellTicketsTest {
    /*
        某电影院目前正在上映国产大片，共有100张票，而它有3个窗口卖票，
        请设计一个程序模拟该电影院卖票，并保证线程同步，不会出现错误的买票数据。
     */
    public static void main(String[] args) {
        SellTickets st = new SellTickets();
        Thread t1 = new Thread(st,"一号窗口");
        Thread t2 = new Thread(st,"二号窗口");
        Thread t3 = new Thread(st,"三号窗口");
        t1.start();
        t2.start();
        t3.start();
    }
}
